<% content_for :title do %>数据导入<% end %>

<form class="form-horizontal" >
<div class="form-group">
  <label class="col-sm-2 control-label">请选择需要导入文件</label>
  <div class="col-sm-4">
    <input type="file"/>
  </div>
</div>


<div class="form-group">
  <label class="col-sm-2 control-label">请选择需要导入的分类</label>
  <div class="col-sm-4">
  <select>
  	<% @data_types.each do |dt|%>
    <optgroup label="<%= dt.name %>"><%= dt.name %></optgroup>
      <% dt.subs.each do |s|%>
  		  <option value="<%= s.id%>">&nbsp;&nbsp;<%= "#{s.no} #{s.name}" %></option>
      <%end%>
  	<%end%>
  </select>
  </div>
</div>
<p></p>

<div class="form-group">
  <div class="col-sm-offset-2 col-sm-10">
    <button type="submit" class="btn btn-default btn-primary">提 交</button>
  </div>
</div>

</form>